package com.example.train.batch.job;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

@Component
@EnableScheduling
public class SpringBootTestJob {

    //cron表达式可以设定定时
//    @Scheduled(cron="0/5 * * * * ?")
//    private void test(){
//        System.out.println(System.currentTimeMillis()+": "+"SpringBootTestJob test");
//    }

}
